package net.adetech.crj.bean;

import java.io.Serializable;

public class Paper implements Serializable {
    private String qfrq;
    private String csrq;
    private String zjzt;
    private  String sfzh;
    private String zjyxqz;
    private String qfjg;
    private String xb;
    private String zwxm;
    private String zjzl;
    private String zjhm;
    private String qfdd;

    public String getQfdd() {
        return qfdd;
    }

    public void setQfdd(String qfdd) {
        this.qfdd = qfdd;
    }

    public String getQfrq() {
        return qfrq;
    }

    public void setQfrq(String qfrq) {
        this.qfrq = qfrq;
    }

    public String getCsrq() {
        return csrq;
    }

    public void setCsrq(String csrq) {
        this.csrq = csrq;
    }

    public String getZjzt() {
        return zjzt;
    }

    public void setZjzt(String zjzt) {
        this.zjzt = zjzt;
    }

    public String getSfzh() {
        return sfzh;
    }

    public void setSfzh(String sfzh) {
        this.sfzh = sfzh;
    }

    public String getZjyxqz() {
        return zjyxqz;
    }

    public void setZjyxqz(String zjyxqz) {
        this.zjyxqz = zjyxqz;
    }

    public String getQfjg() {
        return qfjg;
    }

    public void setQfjg(String qfjg) {
        this.qfjg = qfjg;
    }

    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    public String getZwxm() {
        return zwxm;
    }

    public void setZwxm(String zwxm) {
        this.zwxm = zwxm;
    }

    public String getZjzl() {
        return zjzl;
    }

    public void setZjzl(String zjzl) {
        this.zjzl = zjzl;
    }

    public String getZjhm() {
        return zjhm;
    }

    public void setZjhm(String zjhm) {
        this.zjhm = zjhm;
    }

    public String getPaperName()
    {
        if ("14".equals(this.zjzl))
        {
            return "普通护照";
        }
        if ("21".equals(this.zjzl))
        {
            return "往来港澳通行证";
        }
        if ("25".equals(this.zjzl))
        {
            return "往来台湾通行证";
        }
        return "";
    }

    public String getXbName()
    {
        if ("1".equals(this.xb))
        {
            return "男";
        }
        if ("2".equals(this.xb))
        {
            return "女";
        }
        return "";
    }
    public String getCsrqName()
    {
        if (this.csrq!=null&&this.csrq.length()==8)
        {
            return this.csrq.substring(0,4)+"."+this.csrq.substring(4,6)+"."+this.csrq.substring(6,8);
        }
        return this.csrq;
    }

    public String getYxqxName()
    {
        if (this.qfrq!=null&&this.zjyxqz!=null&&this.qfrq.length()==8&&this.zjyxqz.length()==8)
        {
            return this.qfrq.substring(0,4)+"."+this.qfrq.substring(4,6)+"."+this.qfrq.substring(6,8)
                    +" - "+ this.zjyxqz.substring(0,4)+"."+this.zjyxqz.substring(4,6)+"."+this.zjyxqz.substring(6,8);
        }
        return this.qfrq +" - " + this.zjyxqz;
    }
}
